
$("#upFilm").click(function () {
        upFilm_function_setReleaseDate();
        let $error = "";

        $error = upFilm_function_isEmpty($error);
        $error = upFilm_function_fileType($error);
        $error = upFilm_function_sizeIndexOut($error);

        if($error.length===0){
            upFilm_$form.get(0).action=FilmUrl+"/upFilm"+"/upFilm";
            return true;
        }else {

            upFilm_$form.get(0).action="#";
            alert($error);
            return false;
        }
    }
)
$(document).mousemove(function () {
    const pictType="PNG JPG JPEG".toUpperCase();
        let $pict = upFilm_$table.find("input[name='pict']");
    let val = $pict.val();
        if(val!==undefined&&val!==""&&pictType.indexOf(val.substring(val.lastIndexOf(".")+1).toUpperCase())!==-1){
            upFilm_function_pictSize($pict);
        }
})
upFilm_$title.blur(function () {
    upFilm_function_filmExist();
    }
)
upFilm_$typeList.change(function () {
    upFilm_function_filmExist();
})
upFilm_function_fillPage();